{extend name="public:_base" /}

{block name="main"}

<!--欢迎来到用户中心-->

<div class="page-container">

    <div class=" panel-warning" style="margin-top: 20px;">
        <div class="panel-header">{:lang('Welcome to the user center')}</div>
        <div class="panel-body">
            <table class="table table-border table-bordered table-bg">
                <tbody>
                <tr>
                    <th>{:lang('Login user')}</th>
                    <td>{$user.name}</td>
                </tr>
                <tr>
                    <th>{:lang('Last Login Time')}</th>
                    <td>{gt name="$user.last_login_time" value="5"}{$user.last_login_time|date="Y-m-d H:i:s",###}{/gt}</td>
                </tr>
                </tbody>
            </table>
        </div>
    </div>

    <div class="panel-primary">
        <div class="panel-header">{:lang('Apply for information')}</div>
        <div class="panel-body">
            <table class="table table-border table-bg table-bordered">
                <thead>
                <tr>
                    <th>{:lang('The total amount')}</th>
                    <th>{$jobapply['all']}</th>
                </tr>
                </thead>

                <tbody>
                <tr class="success">
                    <th>{:lang('Not read')}</th>
                    <td>{$jobapply['n']}</td>
                </tr>

                <tr class="active">
                    <th>{:lang('Read')}</th>
                    <td>{$jobapply['y']}</td>
                </tr>
                </tbody>
            </table>
        </div>
    </div>

    {eq name="$user.status" value="1"}
    <div class="panel-secondary ">
        <div class="panel-header"> {:lang('provide information')}</div>
        <div class="panel-body">
            <table class="table table-border table-bg table-bordered">
                <thead>
                <tr>
                    <th>{:lang('The total amount')}</th>
                    <th>{$supply['all']}</th>
                </tr>
                </thead>

                <tbody>
                <tr class="success">
                    <th>{:lang('Pending review')}</th>
                    <td>{$supply['n']}</td>
                </tr>

                <tr class="active">
                    <th>{:lang('Audited')}</th>
                    <td>{$supply['y']}</td>
                </tr>
                </tbody>
            </table>
        </div>
    </div>

    <div class="panel-success">
        <div class="panel-header">{:lang('Purchasing Information')}</div>
        <div class="panel-body">
            <table class="table table-border table-bg table-bordered">
                <thead>
                <tr>
                    <th>{:lang('The total amount')}</th>
                    <th>{$Purchase['all']}</th>
                </tr>
                </thead>

                <tbody>
                <tr class="success">
                    <th>{:lang('Pending review')}</th>
                    <td>{$Purchase['n']}</td>
                </tr>

                <tr class="active">
                    <th>{:lang('Audited')}</th>
                    <td>{$Purchase['y']}</td>
                </tr>
                </tbody>
            </table>
        </div>
    </div>
    {/eq}
    <div class="clear"></div>

</div>

{/block}
